package com.project;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration//定义配置类
@ComponentScan(basePackageClasses = ApplicationConfig.class)//扫描这个包以及子类
@EnableAspectJAutoProxy //设置自动代理
public class ApplicationConfig {

}

